/*
package com.mongo.controller;

import com.mongo.entity.Addr;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

*/
/**
 * @program: ks
 * @description:
 * @author: Liu Weidong
 * @create: 2023-07-30 20:07
 **//*

@RestController
public class TestController {

    @Resource
    MongoTemplate mongoTemplate;

    @GetMapping("/insert")
    public String show(){
     //   mongoTemplate.in
        Addr addr = new Addr();
     //   addr.setAddr("承德");
        addr.setName("赵六");
        addr.setAge(24);
        mongoTemplate.save(addr);
        return "ok";
    }
}
*/
